window._FIGHTITEMTYPE={
        "xwbook": "修炼书",
        "attack": "暗器",
        "attr": "属性",
        "changeFtype": "五行",
        "bossbook": "挑战书",
        "bosspart": "碎片",
        "xwzc": "其他",
        "deleteSkill": "其他",
        "dropJob": "其他",
        "cjb": "其他",
        "peffectAttr": "其他",
        "rename": "其他",
};

window._FIGHTITEM = {
    

    "遗忘之水":{skilltype:"deleteSkill",img:"遗忘之水",lv:5,qua:"D",des:"遗忘技能的时候使用"},


    "融合丹":{skilltype:"none",img:"五光石",lv:1000,qua:"SS",des:"融合角色时消耗1个"},
    "招募券":{skilltype:"none",img:"五光石",lv:1000,qua:"SS",des:"招募角色时消耗1个"},

        

        "铁葫芦":{img:'铁葫芦',lv:200,qua:'C',skilltype:'attack',single:true,target:"army",ani:"zao",
        damage:0,per:0.3,distance:1,scope:0,isgetRole:1,hpper:1,
        des:"30%概率招募C级以下的NPC"},
        "银葫芦":{img:'银葫芦',lv:400,qua:'B',skilltype:'attack',single:true,target:"army",ani:"zao",
        damage:0,per:0.4,distance:1,scope:0,isgetRole:1,hpper:1,
        des:"40%概率招募B级以下的NPC"},
        "金葫芦":{img:'金葫芦',lv:600,qua:'A',skilltype:'attack',single:true,target:"army",ani:"zao",
        damage:0,per:0.5,distance:1,scope:0,isgetRole:1,hpper:1,
        des:"50%概率招募A级以下的NPC"},
        "老葫芦":{img:'老葫芦',lv:800,qua:'S',skilltype:'attack',single:true,target:"army",ani:"zao",
        damage:0,per:0.6,distance:1,scope:0,isgetRole:1,hpper:1,
        des:"60%概率招募S级以下的NPC"},
        "大师葫芦":{img:'大师葫芦',lv:1000,qua:'SS',skilltype:'attack',single:true,target:"army",ani:"zao",
        damage:0,per:1,distance:1,scope:0,isgetRole:1,hpper:1,
        des:"100%概率招募SS级以下的NPC"},


        "炉石":{skilltype:"attack",img:"炉石",lv:5,qua:"D",des:"点击撤退或者在战斗中使用,可以原地脱离战斗",
                single:true,target:"friend",ani:"attack_pu",isrun:1},
        "月光宝盒":{skilltype:"jumpMap",img:"金砖",lv:1000,qua:"SS",des:"可以传送至未解锁地图,角色图鉴界面点击'出现地点:？？？'使用",
                single:true,target:"friend",ani:"attack_pu"},
        "重铸石":{skilltype:"resetEquip",img:"炉石",lv:1000,qua:"SS",des:"可以在锻造界面重置装备",
                        single:true,target:"friend",ani:"attack_pu"},

    //敌军道具 distance 至少1  scope可以为0
    "金砖":{img:'金砖',lv:5,qua:'C',skilltype:'attack',single:true,target:"army",ani:"attack_pu",
            damage:5000,per:0.9,status:'ruo',distance:3,scope:0,
            des:"对单体造成5000点伤害获得虚弱,命中率90%"},
    "银砖":{img:'银砖',lv:5,qua:'C',skilltype:'attack',single:true,target:"army",ani:"attack_pu",
            damage:5000,per:0.5,status:'yun',distance:3,scope:0,
            des:"对单体造成5000点伤害获得晕眩,命中率50%"},
    "冰砖":{img:'冰砖',lv:5,qua:'C',skilltype:'attack',single:true,target:"army",ani:"buff_dong",
            damage:0,per:0.3,status:'dong',distance:3,scope:0,
            des:"对单体造成0点伤害获得冰冻,命中率30%"},
    "老酒":{img:'老酒',lv:5,qua:'C',skilltype:'attack',single:true,target:"friend",ani:"xue_dan",
            bhp:10000,bmg:2,distance:3,scope:0,
            des:"单体恢复10000血和2技能灯"},
    "仙丹":{img:'舍利子',lv:5,qua:'C',skilltype:'attack',single:true,target:"friend",ani:"xue_dan",
            bhp:10000,status:'qiang',distance:3,scope:0,
            des:"单体恢复10000血获得强化"},

    "稀有金砖":{img:'金砖',lv:100,qua:'B',skilltype:'attack',single:true,target:"army",ani:"attack_pu",
            damage:10000,per:0.9,status:'ruo',distance:3,scope:1,
            des:"对群体造成10000点伤害获得虚弱,命中率90%,射程1,范围1"},
    "稀有银砖":{img:'银砖',lv:100,qua:'B',skilltype:'attack',single:true,target:"army",ani:"attack_pu",
            damage:10000,per:0.5,status:'yun',distance:3,scope:1,
            des:"对群体造成10000点伤害获得晕眩,命中率50%,射程1,范围1"},
    "稀有冰砖":{img:'冰砖',lv:100,qua:'B',skilltype:'attack',single:true,target:"army",ani:"buff_dong",
            damage:0,per:0.3,status:'dong',distance:3,scope:1,
            des:"对群体造成0点伤害获得冰冻,命中率30%,射程1,范围1"},
    "稀有老酒":{img:'老酒',lv:100,qua:'B',skilltype:'attack',single:true,target:"friend",ani:"xue_dan",
            bhp:50000,bmg:3,distance:3,scope:1,
            des:"群体恢复50000血3和3技能灯,射程1,范围1"},
    "稀有仙丹":{img:'舍利子',lv:200,qua:'B',skilltype:'attack',single:true,target:"friend",ani:"xue_dan",
            bhp:50000,status:'qiang',distance:3,scope:1,
            des:"群体恢复50000血获得强化,射程1,范围1"},

    "史诗金砖":{img:'金砖',lv:200,qua:'A',skilltype:'attack',single:true,target:"army",ani:"attack_pu",
            damage:50000,per:0.9,status:'ruo',distance:3,scope:2,
            des:"对群体造成50000点伤害获得虚弱,命中率90%,射程2,范围2"},
    "史诗银砖":{img:'银砖',lv:200,qua:'A',skilltype:'attack',single:true,target:"army",ani:"attack_pu",
            damage:50000,per:0.5,status:'yun',distance:3,scope:2,
            des:"对群体造成50000点伤害获得晕眩,命中率50%,射程2,范围2"},
    "史诗冰砖":{img:'冰砖',lv:200,qua:'A',skilltype:'attack',single:true,target:"army",ani:"buff_dong",
            damage:0,per:0.3,status:'dong',distance:3,scope:2,
            des:"对群体造成0点伤害获得冰冻,命中率30%,射程2,范围2"},
    "史诗老酒":{img:'老酒',lv:200,qua:'A',skilltype:'attack',single:true,target:"friend",ani:"xue_dan",
            bhp:100000,bmg:4,distance:3,scope:2,
            des:"群体恢复100000血和4技能灯,射程2,范围2"},
    "史诗仙丹":{img:'舍利子',lv:200,qua:'A',skilltype:'attack',single:true,target:"friend",ani:"xue_dan",
            bhp:100000,status:'qiang',distance:3,scope:2,
            des:"群体恢复100000血获得强化,射程2,范围2"},
    
    "传奇金砖":{img:'金砖',lv:400,qua:'S',skilltype:'attack',single:true,target:"army",ani:"attack_pu",
            damage:100000,per:0.9,status:'ruo',distance:3,scope:3,
            des:"对群体造成100000点伤害获得虚弱,命中率90%,射程3,范围3"},
    "传奇银砖":{img:'银砖',lv:400,qua:'S',skilltype:'attack',single:true,target:"army",ani:"attack_pu",
            damage:100000,per:0.5,status:'yun',distance:3,scope:3,
            des:"对群体造成100000点伤害获得晕眩,命中率50%,射程3,范围3"},
    "传奇冰砖":{img:'冰砖',lv:400,qua:'S',skilltype:'attack',single:true,target:"army",ani:"buff_dong",
            damage:0,per:0.3,status:'dong',distance:3,scope:3,
            des:"对群体造成0点伤害获得冰冻,命中率30%,射程3,范围3"},
    "传奇老酒":{img:'老酒',lv:400,qua:'S',skilltype:'attack',single:true,target:"friend",ani:"xue_dan",
            bhp:500000,bmg:6,distance:3,scope:3,
            des:"群体恢复500000血和6技能灯,射程3,范围3"},
    "传奇仙丹":{img:'舍利子',lv:200,qua:'S',skilltype:'attack',single:true,target:"friend",ani:"xue_dan",
            bhp:500000,status:'qiang',distance:3,scope:3,
            des:"群体恢复500000血获得强化,射程3,范围3"},
    
    "神话金砖":{img:'金砖',lv:800,qua:'SS',skilltype:'attack',single:true,target:"army",ani:"attack_pu",
            damage:200000,per:0.9,status:'ruo',distance:3,scope:5,
            des:"对群体造成200000点伤害获得虚弱,命中率90%,射程5,范围5"},
    "神话银砖":{img:'银砖',lv:800,qua:'SS',skilltype:'attack',single:true,target:"army",ani:"attack_pu",
            damage:200000,per:0.5,status:'yun',distance:3,scope:5,
            des:"对群体造成200000点伤害获得晕眩,命中率50%,射程5,范围5"},
    "神话冰砖":{img:'冰砖',lv:800,qua:'SS',skilltype:'attack',single:true,target:"army",ani:"buff_dong",
            damage:0,per:0.3,status:'dong',distance:3,scope:5,
            des:"对群体造成0点伤害获得冰冻,命中率30%,射程5,范围5"},
    "神话老酒":{img:'老酒',lv:800,qua:'SS',skilltype:'attack',single:true,target:"friend",ani:"xue_dan",
            bhp:1000000,bmg:10,status:'qiang',distance:3,scope:5,
            des:"群体恢复1000000血和10技能灯,射程5,范围5"},
    "神话仙丹":{img:'舍利子',lv:800,qua:'SS',skilltype:'attack',single:true,target:"friend",ani:"xue_dan",
            bhp:1000000,status:'qiang',distance:3,scope:5,
            des:"群体恢复1000000血获得强化,射程5,范围5"},

    "照妖镜":{img:'阴阳镜',lv:1000,qua:'SS',skilltype:'attack',single:true,target:"army",ani:"attack_pu",
            damage:100,per:0.9,status:'feng',distance:3,scope:0,
            des:"对单体造成100点伤害获得状态:封,命中率90%"},

    //提升丹药
    
    "初级体力丹":{skilltype:'attr',useAll:1,img:'初级体力丹',lv:250,qua:'C',effect:{type:'hlv',value:1},des:"体增加1"},
    "中级体力丹":{skilltype:'attr',useAll:1,img:'中级体力丹',lv:500,qua:'B',effect:{type:'hlv',value:2},des:"体增加2"},
    "高级体力丹":{skilltype:'attr',useAll:1,img:'高级体力丹',lv:750,qua:'A',effect:{type:'hlv',value:5},des:"体增加5"},
    "神级体力丹":{skilltype:'attr',useAll:1,img:'神级体力丹',lv:1000,qua:'S',effect:{type:'hlv',value:10},des:"体增加10"},
    
    "初级道德丹":{skilltype:'attr',useAll:1,img:'初级道德丹',lv:250,qua:'C',effect:{type:'mlv',value:1},des:"德增加1"},
    "中级道德丹":{skilltype:'attr',useAll:1,img:'中级道德丹',lv:500,qua:'B',effect:{type:'mlv',value:2},des:"德增加2"},
    "高级道德丹":{skilltype:'attr',useAll:1,img:'高级道德丹',lv:750,qua:'A',effect:{type:'mlv',value:5},des:"德增加5"},
    "神级道德丹":{skilltype:'attr',useAll:1,img:'神级道德丹',lv:1000,qua:'S',effect:{type:'mlv',value:10},des:"德增加10"},

    "初级统率丹":{skilltype:'attr',useAll:1,img:'初级统率丹',lv:250,qua:'C',effect:{type:'dlv',value:1},des:"统增加1"},
    "中级统率丹":{skilltype:'attr',useAll:1,img:'中级统率丹',lv:500,qua:'B',effect:{type:'dlv',value:2},des:"统增加2"},
    "高级统率丹":{skilltype:'attr',useAll:1,img:'高级统率丹',lv:750,qua:'A',effect:{type:'dlv',value:5},des:"统增加5"},
    "神级统率丹":{skilltype:'attr',useAll:1,img:'神级统率丹',lv:1000,qua:'S',effect:{type:'dlv',value:10},des:"统增加10"},

    "初级武力丹":{skilltype:'attr',useAll:1,img:'初级武力丹',lv:250,qua:'B',effect:{type:'plv',value:1},des:"武增加1"},
    "中级武力丹":{skilltype:'attr',useAll:1,img:'中级武力丹',lv:500,qua:'A',effect:{type:'plv',value:2},des:"武增加2"},
    "高级武力丹":{skilltype:'attr',useAll:1,img:'高级武力丹',lv:750,qua:'S',effect:{type:'plv',value:5},des:"武增加5"},
    "神级武力丹":{skilltype:'attr',useAll:1,img:'神级武力丹',lv:1000,qua:'SS',effect:{type:'plv',value:10},des:"武增加10"},

    "初级智力丹":{skilltype:'attr',useAll:1,img:'初级智力丹',lv:250,qua:'B',effect:{type:'ilv',value:1},des:"智增加1"},
    "中级智力丹":{skilltype:'attr',useAll:1,img:'中级智力丹',lv:500,qua:'A',effect:{type:'ilv',value:2},des:"智增加2"},
    "高级智力丹":{skilltype:'attr',useAll:1,img:'高级智力丹',lv:750,qua:'S',effect:{type:'ilv',value:5},des:"智增加5"},
    "神级智力丹":{skilltype:'attr',useAll:1,img:'神级智力丹',lv:1000,qua:'SS',effect:{type:'ilv',value:10},des:"智增加10"},

    //vip
    "完美丹":{skilltype:'peffectAttr',useAll:1,img:'完美丹',lv:1000,qua:'SS',des:"让角色的所有资质增加10",forbidden:1},

    "重生丹":{skilltype:'resetlv',img:'完美丹',lv:1000,qua:'SS',des:"重置角色等级",forbidden:1},
    
    "改名卡":{skilltype:'rename',img:'改名卡',lv:1,qua:'SS',des:"使用后可以修改角色的名称",forbidden:1},

    "魔镜":{skilltype:'repf',img:'照妖镜',lv:1,qua:'SS',des:"使用后可以修改角色的外观",forbidden:1},

    "驱妖丹":{skilltype:'nofight',img:'舍利子',lv:1,qua:'SS',des:"使用后100步不遇敌",forbidden:1},
    
    '剑术符文':{skilltype:'bosspart',img:'剑术',xw:'jian',lv:1000,qua:'SS',des:'镶嵌至装备获得剑术修为,相关锻造副属性:攻击加成 破甲 ',forbidden:1},
'枪棒符文':{skilltype:'bosspart',img:'枪棒',xw:'qiang',lv:1000,qua:'SS',des:'镶嵌至装备获得枪棒修为,相关锻造副属性:攻击加成 ',forbidden:1},
'刀法符文':{skilltype:'bosspart',img:'刀法',xw:'dao',lv:1000,qua:'SS',des:'镶嵌至装备获得刀法修为,相关锻造副属性:攻击加成 击晕 ',forbidden:1},
'射术符文':{skilltype:'bosspart',img:'射术',xw:'she',lv:1000,qua:'SS',des:'镶嵌至装备获得射术修为,相关锻造副属性:攻击加成 命中 ',forbidden:1},
'经略符文':{skilltype:'bosspart',img:'经略',xw:'shan',lv:1000,qua:'SS',des:'镶嵌至装备获得经略修为,相关锻造副属性:精神加成 ',forbidden:1},
'杖法符文':{skilltype:'bosspart',img:'杖法',xw:'zhang',lv:1000,qua:'SS',des:'镶嵌至装备获得杖法修为,相关锻造副属性:精神加成 生命加成 ',forbidden:1},
'重甲符文':{skilltype:'bosspart',img:'重甲',xw:'zhong',lv:1000,qua:'SS',des:'镶嵌至装备获得重甲修为,相关锻造副属性:防御加成 法术反伤 ',forbidden:1},
'皮甲符文':{skilltype:'bosspart',img:'皮甲',xw:'pi',lv:1000,qua:'SS',des:'镶嵌至装备获得皮甲修为,相关锻造副属性:防御加成 暴击 ',forbidden:1},
'布甲符文':{skilltype:'bosspart',img:'布甲',xw:'bu',lv:1000,qua:'SS',des:'镶嵌至装备获得布甲修为,相关锻造副属性:魔防加成 物理反伤 ',forbidden:1},
'御宝符文':{skilltype:'bosspart',img:'御宝',xw:'bao',lv:1000,qua:'SS',des:'镶嵌至装备获得御宝修为,相关锻造副属性:生命加成 ',forbidden:1},
'医术符文':{skilltype:'bosspart',img:'医术',xw:'ys',lv:1000,qua:'SS',des:'镶嵌至装备获得医术修为,相关锻造副属性:生命加成 ',forbidden:1},
'辩才符文':{skilltype:'bosspart',img:'辩才',xw:'bc',lv:1000,qua:'SS',des:'镶嵌至装备获得辩才修为,相关锻造副属性:破甲 ',forbidden:1},
'咒术符文':{skilltype:'bosspart',img:'咒术',xw:'zhous',lv:1000,qua:'SS',des:'镶嵌至装备获得咒术修为,相关锻造副属性:破魔 ',forbidden:1},
'变化符文':{skilltype:'bosspart',img:'变化',xw:'bh',lv:1000,qua:'SS',des:'镶嵌至装备获得变化修为,相关锻造副属性:击晕免疫 ',forbidden:1},
'盗术符文':{skilltype:'bosspart',img:'盗术',xw:'ds',lv:1000,qua:'SS',des:'镶嵌至装备获得盗术修为,相关锻造副属性:闪避 ',forbidden:1},
'暗器符文':{skilltype:'bosspart',img:'暗器',xw:'aq',lv:1000,qua:'SS',des:'镶嵌至装备获得暗器修为,相关锻造副属性:暗器增伤 ',forbidden:1},
'武学符文':{skilltype:'bosspart',img:'武学',xw:'wux',lv:1000,qua:'SS',des:'镶嵌至装备获得武学修为,相关锻造副属性:暴击增伤 ',forbidden:1},
'体魄符文':{skilltype:'bosspart',img:'体魄',xw:'tp',lv:1000,qua:'SS',des:'镶嵌至装备获得体魄修为,相关锻造副属性:格挡 ',forbidden:1},
'空间符文':{skilltype:'bosspart',img:'空间',xw:'kj',lv:1000,qua:'SS',des:'镶嵌至装备获得空间修为,相关锻造副属性:减伤 ',forbidden:1},
'身法符文':{skilltype:'bosspart',img:'身法',xw:'sf',lv:1000,qua:'SS',des:'镶嵌至装备获得身法修为,相关锻造副属性:速度 ',forbidden:1},
'霸气符文':{skilltype:'bosspart',img:'霸气',xw:'bq',lv:1000,qua:'SS',des:'镶嵌至装备获得霸气修为,相关锻造副属性:增伤 ',forbidden:1},
'念力符文':{skilltype:'bosspart',img:'念力',xw:'nl',lv:1000,qua:'SS',des:'镶嵌至装备获得念力修为,相关锻造副属性:击晕 ',forbidden:1},
'臂力符文':{skilltype:'bosspart',img:'臂力',xw:'bl',lv:1000,qua:'SS',des:'镶嵌至装备获得臂力修为,相关锻造副属性:致命一击 ',forbidden:1},
'修心符文':{skilltype:'bosspart',img:'修心',xw:'xx',lv:1000,qua:'SS',des:'镶嵌至装备获得修心修为,相关锻造副属性:命中 ',forbidden:1},
'仙术符文':{skilltype:'bosspart',img:'仙术',xw:'xs',lv:1000,qua:'SS',des:'镶嵌至装备获得仙术修为,相关锻造副属性:精神加成 ',forbidden:1},
'神祇符文':{skilltype:'bosspart',img:'神祇',xw:'sq',lv:1000,qua:'SS',des:'镶嵌至装备获得神祇修为,相关锻造副属性:生命加成 ',forbidden:1},
'法相符文':{skilltype:'bosspart',img:'法相',xw:'fx',lv:1000,qua:'SS',des:'镶嵌至装备获得法相修为,相关锻造副属性:精神加成 ',forbidden:1},
'妖术符文':{skilltype:'bosspart',img:'妖术',xw:'yaos',lv:1000,qua:'SS',des:'镶嵌至装备获得妖术修为,相关锻造副属性:攻击加成 ',forbidden:1},
'魂术符文':{skilltype:'bosspart',img:'魂术',xw:'hs',lv:1000,qua:'SS',des:'镶嵌至装备获得魂术修为,相关锻造副属性:攻击加成 ',forbidden:1},
'驭兽符文':{skilltype:'bosspart',img:'驭兽',xw:'yus',lv:1000,qua:'SS',des:'镶嵌至装备获得驭兽修为,相关锻造副属性:生命加成 ',forbidden:1},
'兵法符文':{skilltype:'bosspart',img:'兵法',xw:'bf',lv:1000,qua:'SS',des:'镶嵌至装备获得兵法修为,相关锻造副属性:防御加成 ',forbidden:1},
'机关符文':{skilltype:'bosspart',img:'机关',xw:'jg',lv:1000,qua:'SS',des:'镶嵌至装备获得机关修为,相关锻造副属性:魔防加成 ',forbidden:1},
'能源符文':{skilltype:'bosspart',img:'能源',xw:'ny',lv:1000,qua:'SS',des:'镶嵌至装备获得能源修为,相关锻造副属性:生命加成 ',forbidden:1},
'狂化符文':{skilltype:'bosspart',img:'狂化',xw:'kh',lv:1000,qua:'SS',des:'镶嵌至装备获得狂化修为,相关锻造副属性:生命加成 ',forbidden:1},
'佛经符文':{skilltype:'bosspart',img:'佛经',xw:'fj',lv:1000,qua:'SS',des:'镶嵌至装备获得佛经修为,相关锻造副属性:生命加成 ',forbidden:1},
'再生符文':{skilltype:'bosspart',img:'再生',xw:'zs',lv:1000,qua:'SS',des:'镶嵌至装备获得再生修为,相关锻造副属性:生命加成 ',forbidden:1},
'锐金符文':{skilltype:'bosspart',img:'锐金',xw:'jin',lv:1000,qua:'SS',des:'镶嵌至装备获得锐金修为,相关锻造副属性:金强 木抗 ',forbidden:1},
'巨木符文':{skilltype:'bosspart',img:'巨木',xw:'mu',lv:1000,qua:'SS',des:'镶嵌至装备获得巨木修为,相关锻造副属性:木强 土抗 ',forbidden:1},
'洪水符文':{skilltype:'bosspart',img:'洪水',xw:'shui',lv:1000,qua:'SS',des:'镶嵌至装备获得洪水修为,相关锻造副属性:水强 火抗 ',forbidden:1},
'烈火符文':{skilltype:'bosspart',img:'烈火',xw:'huo',lv:1000,qua:'SS',des:'镶嵌至装备获得烈火修为,相关锻造副属性:火强 金抗 ',forbidden:1},
'厚土符文':{skilltype:'bosspart',img:'厚土',xw:'tu',lv:1000,qua:'SS',des:'镶嵌至装备获得厚土修为,相关锻造副属性:土强 水抗 ',forbidden:1},

    };


window._FIGHTITEMHELPER = {

        _cachearr:{},

        initRandomArr:function(type){

                if(!_FIGHTITEMHELPER._cachearr[type]){
                        
                        var tmpMap = {};
                        for(var key in _FIGHTITEM){

                                if(
                                        !_FIGHTITEM[key].forbidden
                                        &&_FIGHTITEM[key].skilltype==type
                                ){      
                                        var itemlv = _FIGHTITEM[key].qua;
                                        if(!tmpMap[itemlv]){
                                                tmpMap[itemlv]=[];
                                        }
                                        tmpMap[itemlv].push(key);
                                }

                        }
                        
                        _FIGHTITEMHELPER._cachearr[type] = tmpMap;

                }

        },

        randomItemByLevel:function(lv,type){

           var tmparr = null;

           _FIGHTITEMHELPER.initRandomArr(type);

           if(!_FIGHTITEMHELPER._cachearr[type]){
                return null;
           }

           tmparr=_FIGHTITEMHELPER._cachearr[type][lv];

           //console.log('随机池:',tmparr);

           if(tmparr&&tmparr.length>0){
                return _CU.randomObj(tmparr);
           }else{
                return null;
           }
        },

        getQuaOfLv:function(lv){
            if(lv<200){
                return "C";
            }else if(lv<400){
                return "B";
            }else if(lv<600){
                return "A";
            }else if(lv<800){
                return "S";
            }else{
                return "SS";
            }
        },

        randomItemByMapLevel:function(lv,type){

                var tmparr = null;
     
                _FIGHTITEMHELPER.initRandomArr(type);

                if(!_FIGHTITEMHELPER._cachearr[type]){
                        return null;
                }

                var reallv = _FIGHTITEMHELPER.getQuaOfLv(lv);
     
                tmparr=_FIGHTITEMHELPER._cachearr[type][reallv];
     
                //console.log('随机池:',tmparr);
     
                if(tmparr&&tmparr.length>0){
                     return _CU.randomObj(tmparr);
                }else{
                     return null;
                }
        },

        //道具是否能在战斗中使用
        canUseInFight:function(type){
                return  type
                        &&_FIGHTITEM[type]
                        &&(_FIGHTITEM[type].skilltype=='attack'
                            ||_FIGHTITEM[type].skilltype=='buff'
                            ||_FIGHTITEM[type].skilltype=='debuff'
                        );
        }

}